package com.service.creditcard.feignService;

import com.client.model.pojo.bank.ArBankcard;
import com.client.model.vo.common.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @Author : RulerWood
 * @Data : 2024/4/6 - 17:49
 */
@FeignClient(path = "/airui/api/creditcardFeign", value = "service-bank")
public interface BankCardFeignService {

    @GetMapping("/{cid}")
    Result<ArBankcard> getCreditCardById(@PathVariable("cid") Long cid);
    @PostMapping("/")
    Result update(@RequestBody ArBankcard arBankcard);
    @GetMapping("/findBankCardByCardNum")
    public ArBankcard getBankCardByCardNum(@RequestParam(name = "cardNum") String cardNum);}
